execute if score game_run system matches 1 run function vs:system/game_ctrol/void_stream/void_stream

execute if score game_run system matches 1 if score void_stream_before_change system matches -2147483648..2147483647 run scoreboard players remove void_stream_before_change system 1
execute if score game_run system matches 1 if score void_stream_before_change system matches ..0 run function vs:system/game_ctrol/void_stream/stream_change

#devour attack
execute if score game_run system matches 1 if score devour_attack system matches -2147483648..2147483647 run scoreboard players remove devour_attack system 1
execute if score game_run system matches 1 if score devour_attack system matches ..0 run function vs:system/game_ctrol/void_stream/devour/devour_attack

#devour no power damage
execute if score game_run system matches 1 if score stream_type system matches 5 as @e[tag=StreamBarrierSpawner,scores={Power=..0}] at @s run function vs:system/game_ctrol/stream_barrier_spawner/health/no_power_devour_damage